Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support single values for item components #268

Merged
merged 1 commit into from
May 11, 2024

Conversation

QuazChick
Copy link
Contributor

Many item components also support a format similar to "minecraft:component": true rather than "minecraft:component": { "value": true }

@Xterionix
Copy link
Contributor

Could've sworn that resulted in an error in the newest format version for most of those components

@DaanV2
Copy link
Contributor

DaanV2 commented Apr 2, 2024

Going to have to test this 🤔

@QuazChick
Copy link
Contributor Author

I've tested them all in game, display name is the only component that doesn't support it.

@Xterionix
Copy link
Contributor

Alr

@DaanV2
Copy link
Contributor

DaanV2 commented Apr 2, 2024

@QuazChick Could you share your file?

I might just want to do a quick verification :)

@QuazChick
Copy link
Contributor Author

test.mcpack

{
  "format_version": "1.20.70",
  "minecraft:item": {
    "description": {
      "identifier": "test:staff",
      "menu_category": {
        "category": "equipment"
      }
    },
    "components": {
      "minecraft:can_destroy_in_creative": false,
      "minecraft:max_stack_size": 64,
      "minecraft:icon": "stick",
      "minecraft:glint": true,
      "minecraft:damage": 2,
      "minecraft:stacked_by_data": true,
      "minecraft:should_despawn": true,
      "minecraft:hover_text_color": "aqua",
      "minecraft:use_animation": "brush",
      "minecraft:use_modifiers": {
        "use_duration": 2
      }
    }
  }
}

@DaanV2
Copy link
Contributor

DaanV2 commented May 11, 2024

Confirmed that it still works

@Xterionix
Copy link
Contributor

Guess it can be merged then

@DaanV2 DaanV2 merged commit 0ed8493 into Blockception:main May 11, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants